import 'package:flutter/material.dart';

import '../../config/public_color.dart';
import '../gesture/hide_keyboard_gesture.dart';

/// FileName hide_keyboard_scaffold
///
/// @Author lax
/// @Date 2024/5/28
///
/// @Description

class HideKeyboardScaffold extends HideKeyboardGesture {
  static String? defaultImageName;

  HideKeyboardScaffold({
    super.key,
    Color? backgroundColor,
    PreferredSizeWidget? appBar,
    Widget? body,
    Widget? floatingActionButton,
    FloatingActionButtonLocation? floatingActionButtonLocation,
    bool? resizeToAvoidBottomInset,
    Widget? bottomNavigationBar,
    Widget? bottomSheet,
    Widget? drawer,
    DrawerCallback? onDrawerChanged,
    Widget? endDrawer,
    DrawerCallback? onEndDrawerChanged,
  }) : super(
          child: Scaffold(
            backgroundColor: backgroundColor ?? PublicColor.background,
            appBar: appBar,
            body: body,
            resizeToAvoidBottomInset: resizeToAvoidBottomInset,
            floatingActionButton: floatingActionButton,
            floatingActionButtonLocation: floatingActionButtonLocation,
            bottomNavigationBar: bottomNavigationBar,
            bottomSheet: bottomSheet,
            drawer: drawer,
            onDrawerChanged: onDrawerChanged,
            endDrawer: endDrawer,
            onEndDrawerChanged: onEndDrawerChanged,
          ),
        );
}
